﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Web;
using System.ServiceModel;
using System.IO;

namespace EnglishRemix.Services
{
    //The following two lines need to be declared only once
    [DataContractFormat]
    [ServiceContract]
    public partial interface IEnglishRemixBookService
    {
        [WebGet(UriTemplate = "/", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
        String getAlive();

        //[WebInvoke(Method = "POST", UriTemplate = "/UploadImage?name={filename}")]
        //Response UploadVideo(string filename, Stream picture);

        [WebInvoke(UriTemplate = "/", Method = "POST")]
        Response PostRequest(Stream input);

        [WebInvoke(UriTemplate = "/", Method = "PUT")]
        String putAlive();

        [WebInvoke(UriTemplate = "/", Method = "DELETE")]
        String deleteAlive();
    }
}
